<!DOCTYPE html>
<html ng-app="myApp">

<head>
	<meta charset="utf-8">
</head>

<body>
	<div ng-controller="testCtrl">
		{{testData | date:'yyyy-MM-dd HH:mm:ss'}}<br>
		{{testData | utcdate :'yyyy-MM-dd HH:mm:ss'}}
		
	</div>
	<script src="angular-1.5.8/angular.min.js"></script>
	<script>
		var app=angular.module('myApp', []);
		app.controller('testCtrl',function($scope){
			$scope.testData="2017-06-27T06:47:16.656000";
		});
		app.filter('utcdate', ['$filter','$locale', function($filter, $locale){

			return function (input, format) {
				if (!angular.isDefined(format)) {
					format = $locale['DATETIME_FORMATS']['medium'];
				}

				var date = new Date(input);
				var d = new Date()
				var _utc = new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(),  date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds());
				return $filter('date')(_utc, format)
			};
		}]);
	</script>
</body>

</html>